package com.panfeng.xcloud.common.core.enums;

import lombok.AllArgsConstructor;

/**
 *
 * 分成结算状态枚举
 *
 * @author xiaobo
 * @version 1.0
 * @since 2024-05-03
 */
@AllArgsConstructor
public enum GetRebateStatusEnum {
    SETTLED(0, "已结算"), UNSETTLED(1, "未结算");

    public final Integer value;
    public final String desc;

    public static GetRebateStatusEnum enumOf(Integer value) {
        for(GetRebateStatusEnum e: GetRebateStatusEnum.values()) {
            if(e.value.equals(value)) {
                return e;
            }
        }
        return null;
    }
}
